/**********************************************************

file:  Xbee.h

Author:	  albert

xbee can only work @3.3V!!
 **********************************************************/

#ifndef __Xbee_H__             
  #define __Xbee_H__            

  #include <avr/io.h>
  #include <util/delay.h>


  #define XBEE_VDDC PB0
  #define XBEE_RESET_PIN PB7
  #define  XBEE_RESET_DIR DDRB
  #define XBEE_RESET_PORT PORTB
  

  extern unsigned char xbee_temp;
  extern unsigned char xbee_usart_num;
  extern unsigned char xbee_usart_high_speed;

  //#define POWER_CAM PB0

  void cmd_integrate(unsigned char at_cmd[], unsigned int size_of_at_cmd, unsigned char parameter[], unsigned int size_of_par, unsigned char add_LF,
    unsigned char call_write_usart_func);
  unsigned char Xbee_config_init(void);
  unsigned char xbee_return_value_chk(void);
  void xbee_reset(void);
  unsigned char Xbee_HspeedTest(void);



#endif 

 /*********************************************************/
